package main.java.factory.sinple_factory;

public class CoffeeStore {
    public Coffee orderCoffee(String type) {
        SimpleCoffeeFactory factory = new SimpleCoffeeFactory();

        Coffee coffee = factory.createCoffee(type);
        if (coffee != null) {
            coffee.addMilk();
            coffee.addSugar();
        }
        return coffee;
    }
}
